package top.scsoul.pas.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.scsoul.pas.entity.Achievement;
import top.scsoul.pas.repository.AchievementRepository;
import top.scsoul.pas.service.AchievementService;

import javax.transaction.Transactional;
import java.util.List;

@Transactional(rollbackOn = Exception.class)
@Slf4j
@Service
public class AchievementServiceImpl implements AchievementService {
    @Autowired
    AchievementRepository achievementRepository;


    @Override
    public List<Achievement> listAchievementByExamInfoId(Long id) {
        return achievementRepository.listAchievementByExamInfoId(id);
    }
}
